package com.yeyks.dal.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

@ApiModel(description = "账号对象信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AccountInfo{

    @ApiModelProperty(value = "账号主键ID")
    private Integer id;

    @ApiModelProperty(value = "账号创建时间")
    private Date gmtCreate;

    @ApiModelProperty(value = "账号修改时间")
    private Date gmtModified;

    @ApiModelProperty(value = "账号父ID")
    private Integer parentId;

    @ApiModelProperty(value = "账号区域")
    private String area;

    @ApiModelProperty(value = "账号电话")
    private String phone;

    @ApiModelProperty(value = "账号座机电话")
    private String tel;

    @ApiModelProperty(value = "账号登录名",required = true)
    @NotBlank(message = "账号不能为空")
    private String username;

    @ApiModelProperty(value = "账号名")
    private String name;

    @ApiModelProperty(value = "账号昵称")
    private String nickname;

    @ApiModelProperty(value = "账号密码")
    private String password;

    @ApiModelProperty(value = "性别")
    private Boolean gender;

    @NotBlank(message = "是否可用")
    private Boolean valid;

    @NotBlank(message = "账号状态")
    private Integer status;
    @NotBlank(message = "账号类型")
    private Integer type;

    @NotBlank(message = "账号邮箱")
    private String email;

    @NotBlank(message = "账号其他信息")
    private String extraInfo;

}